package autohotkeyide;

import com.gooddies.persistence.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JPopupMenu;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;

/**
 * @author sad
 */
public class AutohotkeyIDE {

    private static void setWindowsLookAndFeel() {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            JPopupMenu.setDefaultLightWeightPopupEnabled(false);
        } catch (Exception ex) {
            Logger.getLogger(AutohotkeyIDE.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {

            @Override
            public void run() {
                Properties.get().readProperties();
                setWindowsLookAndFeel();
                MainWindow window=new MainWindow();
                window.setVisible(true);
            }
        });
    }
}
